package cn.aaalei.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;


@Controller
public class LoginController {

    @RequestMapping("/login")
    public String login(){
        return "login";
    }

    @RequestMapping("/loginError")
    public String loginError(){
        return "login";
    }

    @GetMapping("/register")
    public String register(){
        return "register";
    }

    @RequestMapping("/")
    public String index(){
        return "redirect:/main/index";
    }
}
